package yc.gg.mapper;

import yc.gg.domain.dto.OrderAnimalDTO;
import yc.gg.domain.po.PayOrder;
import yc.gg.domain.vo.ProductVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * \* User: Fuyue
 * \* Date: 2025/6/6
 * \* Description:
 * \
 */

public interface OrderMapper {
    PayOrder queryUnPayOrder(PayOrder payOrderReq);

    int updateOrderStatus(PayOrder unpaidOrder);

    ProductVO queryAnimalByAnimalId(String animalsId);

    void insert(PayOrder newOrder);

    void updateAnimalState(@Param("state") int state,@Param("id") String id,@Param("userId")String userId);

    void changeOrderPaySuccess(PayOrder payOrderReq);

    List<String> queryNoPayNotifyOrder();

    List<String> queryTimeoutCloseOrderList();

    boolean changeOrderClose(String orderId);

    PayOrder queryOrderByIdAndUserId(@Param("orderId") String orderId);

    List<OrderAnimalDTO> mine(String openid);

}
